package com.samehope.ar.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;

/**
 * @Description: 用户注册参数
 * @Author: ZhangLuo
 * @Email: 1946430@qq.com
 */
@Data
public class UserRegisterParam {

    @NotBlank(message = "手机号不能为空")
    @Length(min = 11, max = 11, message = "手机号长度有误")
    private String mobile;

    @NotBlank(message = "验证码不能为空")
    private String code;

    @NotBlank(message = "密码不能为空")
    private String password;
}
